<%--
  Created by IntelliJ IDEA.
  User: LiangGong
  Date: 2020/7/29
  Time: 9:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--如果需要将request中保存的list集合遍历并输出,一定要使用第三方给我们准备好的标签库--%>
<%--引用标签库--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">


<html>
<head>
    <title>Title</title>
</head>
<body>
<div class="container">
    <table class="table table-hover">

       <tr>
       用户名:${username}
       <td>id</td>
       <td>name</td>
       <td>phone</td>
       <td>email</td>
       <td>title</td>
       <td>content</td>
       <td>createdtime</td>
       <td>操作</td>
       </tr>
       <c:forEach var="gb" items="${list}">
           <tr>
               <td>${gb.id}</td>
               <td>${gb.name}</td>
               <td>${gb.phone}</td>
               <td>${gb.email}</td>
               <td>${gb.title}</td>
               <td>${gb.content}</td>
               <td>${gb.createdtime}</td>
               <td>
                   <a href="###" class="btn btn-primary">修改</a>
                   <a href="user/manager?id=${gb.id}&q=delete" class="btn btn-danger">删除</a>
               </td>
           </tr>
       </c:forEach>

    </table>
</div>
</body>
</html>
